﻿using System;
using UnityEngine;

namespace Whoot
{
    public static partial class TaskChainExtension
    {
        public static SequenceList Sequence<T>(this T selfbehaviour) where T : MonoBehaviour
        {
            var retNodeChain = new SequenceList();
            return retNodeChain;
        }

        public static ParallelList Parallel<T>(this T selfbehaviour) where T : MonoBehaviour
        {
            var retNodeChain = new ParallelList();
            return retNodeChain;
        }

        public static TimelineList Timeline<T>(this T selfbehaviour) where T : MonoBehaviour
        {
            var retNodeChain = new TimelineList();
            return retNodeChain;
        }

        public static TaskList Finished(this TaskList senfChain, Action<bool> callback)
        {
            senfChain.OnFinished = callback;
            return senfChain;
        }
    }
}